#ifndef ERROR_H
#define ERROR_H

#include <QWidget>
#include <QString>
#include <QLineEdit>

#define SPECIAL_LOGIN 2
#define SPECIAL_LOGIN_ERROR_NAME 21
#define SPECIAL_LOGIN_ERROR_PASSWORD 22
#define SPECIAL_LOGIN_SUCCESS 23

namespace Ui {
    class Error;
}

class Error : public QWidget
{
    Q_OBJECT

public:
    explicit Error(QWidget *parent = 0);
    ~Error();
    bool m_IllegalCharCheck(QString, QString, int);
    void m_ErrorPlay(QString, QString);
    void m_Format(QByteArray *, QString, int, char);

private:
    Ui::Error *ui;
};

#endif // ERROR_H
